<html>
  <head>
  	<script type="text/javascript" src="${base}/res/comm/js/jquery/jquery.js"></script>
  	<script type="text/javascript" src="${base}/res/admin/js/admin.js"></script>
  	<script type="text/javascript">
  		function save(){
  			var t = /^.{6,20}$/;
  			if(!t.test($('#oldpassword').val())){
  				window.alert('密码必须为6-20个字符');
  				$('#oldpassword').select();
  				return false;
  			}
  			if(!t.test($('#password').val())){
  				window.alert('密码必须为6-20个字符');
  				$('#password').select();
  				return false;
  			}
  			if($('#repassword').val() != $('#password').val()){
  				window.alert('确认密码必须跟新密码一致');
  				$('#repassword').select();
  				return false;
  			}
  			ajaxPost('${base}/admin/adminuserpasseditdo.jhtml',{
				'oldpassword':$('#oldpassword').val(),
				'password':$('#password').val()
				},null,'json',savecallback);
		}
  		function savecallback(data){
			window.alert(data.message);
		}
	</script>
  </head>
  
<body style="overflow:auto;">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" >
  <tr>
    <td height="20">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="15" height="30"><img src="${base}/res/admin/images/tab_03.gif" width="15" height="30" /></td>
        <td background="${base}/res/admin/images/tab_05.gif"><img src="${base}/res/admin/images/311.gif" width="16" height="16" /> <span class="STYLE4" style="height:16px;">修改登陆密码</span></td>
        <td width="14"><img src="${base}/res/admin/images/tab_07.gif" width="14" height="30" /></td>
      </tr>
    </table>
    </td>
  </tr>
  <tr>
    <td ><table width="100%" border="0" cellspacing="0" cellpadding="0" >
      <tr>
        <td width="9" background="${base}/res/admin/images/tab_12.gif"   bgcolor="D3E6F5">&nbsp;</td>
        <td>
          <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="STYLE1">
            <tr>
            <td width="50%">
	            <table   class="STYLE1">
	            
	            <tr>
		   		<td height="18" bgcolor="#FFFFFF"><span class="STYLE1">原登陆密码:</span></td>
		   		<td height="18" bgcolor="#FFFFFF"><input id="oldpassword" name="oldpassword" type="password" style="width:200px;"/></td>
		  		<td bgcolor="#FFFFFF">&nbsp;</td>
		  	</tr>
	            <tr>
	              <td height="18" bgcolor="#FFFFFF"><span class="STYLE1">新登陆密码:</span></td>
	              <td height="18" bgcolor="#FFFFFF"><input id="password" name="password" type="password" style="width:200px;"/></td>
	              <td bgcolor="#FFFFFF">&nbsp;</td>
	            </tr>
	             <tr>
	              <td height="18" bgcolor="#FFFFFF">确认新登陆密码:</td>
	              <td height="18" bgcolor="#FFFFFF"><input id="repassword" name="repassword" type="password" style="width:200px;"/></td>
	              <td bgcolor="#FFFFFF">&nbsp;</td>
	            </tr>
	              <td  align="right" colspan="2">
	              <input type="button" value="保存" onclick="return save();" style="cursor:hand;border:1 solid black; font-style: normal; font-variant: normal; font-weight: normal; height: 18px; line-height: normal;"/></td>
	            </table>
            </td>
            <td >&nbsp;</td>
            </tr>
           
          </table>
		</td>
        <td width="9" background="${base}/res/admin/images/tab_16.gif">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="29"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="15" height="29"><img src="${base}/res/admin/images/tab_20.gif" width="15" height="29" /></td>
        <td background="${base}/res/admin/images/tab_21.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="40%"><div align="left"><span class="STYLE1"></span></div></td>
            <td width="60%" class="STYLE1">&nbsp;</td>
          </tr>
        </table></td>
        <td width="14"><img src="${base}/res/admin/images/tab_22.gif" width="14" height="29" /></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>
